﻿namespace Borg
{
    public class SlotEventHandlerInfo
    {
        private readonly SlotInfo _slot;

        public string OnOpening
        {
            get { return _slot.slotTypeInfo.slotAttribute.OnOpening; }
        }

        public string OnOpened
        {
            get { return _slot.slotTypeInfo.slotAttribute.OnOpened; }
        }

        public string OnClosing
        {
            get { return _slot.slotTypeInfo.slotAttribute.OnClosing; }
        }

        public string OnClosed
        {
            get { return _slot.slotTypeInfo.slotAttribute.OnClosed; }
        }

        public string OnRegistering
        {
            get { return _slot.slotTypeInfo.slotAttribute.OnRegistering; }
        }

        public string OnRegistered
        {
            get { return _slot.slotTypeInfo.slotAttribute.OnRegistered; }
        }

        public string OnDeregistering
        {
            get { return _slot.slotTypeInfo.slotAttribute.OnDeregistering; }
        }

        public string OnDeregistered
        {
            get { return _slot.slotTypeInfo.slotAttribute.OnDeregistered; }
        }

        public string OnPlugging
        {
            get { return _slot.slotTypeInfo.slotAttribute.OnPlugging; }
        }

        public string OnPluggingCanceled
        {
            get { return _slot.slotTypeInfo.slotAttribute.OnPluggingCanceled; }
        }

        public string OnPlugged
        {
            get { return _slot.slotTypeInfo.slotAttribute.OnPlugged; }
        }

        public string OnUnplugging
        {
            get { return _slot.slotTypeInfo.slotAttribute.OnUnplugging; }
        }

        public string OnUnplugged
        {
            get { return _slot.slotTypeInfo.slotAttribute.OnUnplugged; }
        }

        public string OnSelectionChanged
        {
            get { return _slot.slotTypeInfo.slotAttribute.OnSelectionChanged; }
        }

        public SlotEventHandlerInfo(SlotInfo slot)
        {
            _slot = slot;
        }
    }
}

